package com.example.javaow.service;


import com.example.javaow.domain.base.ResponseResult;
import com.example.javaow.domain.dto.Login;
import com.example.javaow.domain.dto.RegisterDTO;
import org.springframework.security.core.userdetails.UserDetails;

import java.util.Map;

public interface UserService {
    ResponseResult<Map<String, Object>> login(Login login);
    ResponseResult<String> register(RegisterDTO registerDTO);

    public UserDetails loadUserByUsername(String username);
}